package com.task.core.service;

import java.util.List;

import com.task.common.domain.info.KeyAndValue;
import com.task.core.domain.DatasourceGroupInfo;
import com.task.core.dto.request.DatasourceGroupRequestDTO;

/**
 * @author 迪迦.
 * @date 2024/11/4 17:25
 */
public interface DatasourceGroupService {

  List<DatasourceGroupInfo> getDatasourceGroupByPage(DatasourceGroupRequestDTO request);

  List<KeyAndValue> getDatasourceGroupForOption(DatasourceGroupRequestDTO request);

  void addDatasourceGroup(DatasourceGroupRequestDTO request);

  void modifyDatasourceGroup(DatasourceGroupRequestDTO request);

  void deleteDatasourceGroup(String datasourceGroupCode, Long userId);

    DatasourceGroupInfo getDatasourceGroupDetailByCode(String datasourceGroupCode);
}
